class Response:

    @classmethod
    def success(cls, code=0, data=None, msg='OK'):
        return {"code": code, "data": data, "msg": msg}

    @classmethod
    def error(cls, code=1, data=None, msg=None):
        return {"code": code, "data": data, "msg": msg}
